home *** CD-ROM | disk | FTP | other *** search
XSetup plugin | 2000-12-13 | 1.4 KB | 58 lines |
- "FILE"="Xteq Systems X-Setup Plugin 6.0"
- "TYPE"="7"
- "COUNT"="3"
- "UIPATH"="Hardware\System Settings"
- "NAME"="Windows ME NUM Lock Options"
- "VERSION"="1.01"
- "OSVERSION"="00001"
- "LANGUAGE"="VBScript"
- "TEXT 1"="Windows+DOS share the same NUMLOCK state"
- "TEXT 2"="NUMLOCK always ON in Windows"
- "TEXT 3"="NUMLOCK always OFF in Windows"
- "DESCRIPTION 1"="By default, Windows ME and DOS 7.0 share the same NUMLOCK setting, means ON or OFF."
- "DESCRIPTION 2"="However, this can be changed to whatever your might prefer."
- "AUTHOR"="Xteq Systems"
- "CONTACTURL"="http://www.xteq.com"
- "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
- "COMMENT 1"=" "
- "COMMENT 2"="Thanks to CptSiskoX for the settings and the idea."
-
-
- sV1="HKEY_CURRENT_USER\ControlPanel\Microsoft\Input Devices\Keyboard\NumLock"
-
-
- SUB Plugin_Initialize
- s=RegReadValue(sV1)
-
- If IsEmpty(s) then SetUIElement 1,true
- If s="ON" then SetUIElement 2,true
- If s="OFF" then SetUIElement 3,true
- END SUB
-
- SUB Plugin_CheckData(ElementIndex)
- END SUB
-
- SUB Plugin_Apply(ElementIndex,ElementSubIndex)
- b=GetUIElement(1)
- if b=true then
- s=RegReadValue(sV1)
- if IsEmpty(s)=false then RegDeleteValue(sV1)
- end if
-
- b=GetUIElement(2)
- if b=true then
- Call RegWriteValue(sV1,"ON",1)
- end if
-
- b=GetUIElement(3)
- if b=true then
- Call RegWriteValue(sV1,"OFF",1)
- end if
-
-
- Call Logoff
- END SUB
-
- SUB Plugin_Terminate
- END SUB
-